package com.atguigu.gmall.product.mapper;

import com.atguigu.gmall.model.product.BaseAttrInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface BaseAttrInfoMapper extends BaseMapper<BaseAttrInfo> {

    /**
     *
     * @param categoryId
     * @param categoryId2
     * @param categoryId3
     * @return
     */
    List<BaseAttrInfo> selectBaseAttrInfo(@Param("categoryId") Long categoryId,
                                          @Param("categoryId2") Long categoryId2,
                                          @Param("categoryId3") Long categoryId3);

    /**
     *
     * @param skuId
     * @return
     */
    List<BaseAttrInfo> selectAttrList(Long skuId);
}
